package com.spzx.manager;

import com.spzx.common.log.annotation.EnableLogAspect;
import com.spzx.manager.properties.MinioProperties;
import com.spzx.manager.properties.UserAuthProperties;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableLogAspect // 使用aop记录日志
@SpringBootApplication
@MapperScan("com.spzx.manager.mapper")
@ComponentScan(basePackages = {"com.spzx"})
@EnableConfigurationProperties(value = {UserAuthProperties.class, MinioProperties.class})
@EnableScheduling
@EnableAsync //异步执行方法
@Slf4j
public class SpzxManagerApplication {
    public static void main(String[] args) {
        log.info("项目启动成功");
        SpringApplication.run(SpzxManagerApplication.class, args);
    }
}